Component({
    properties: {
        item: {
            type: Object,
            value: {}
        },
        bottomIndex: {
            type: Number,
            value: 0
        },
        ind: {
            type: null
        },
        inds: {
            type: null
        },
        combine: {
            type: null
        }
    },
    data: {
        colors: [ "#fbbd5c", "#ff8383", "#a291ff", "#f095ed", "#6dccf8", "#fb946c", "#cecece" ]
    },
    lifetimes: {
        attached: function() {
            var e = wx.getStorageSync("langIndex");
            this.setData({
                language: e.en
            });
        }
    },
    methods: {
        tapGo: function(e) {
            var t = e.currentTarget.dataset.info;
            console.log(), t.num ? (console.log(t), wx.navigateTo({
                url: "/packageA/member/coupon_v2_detail/coupon_v2_detail?info=" + JSON.stringify(t) + "&combine=" + this.data.combine
            })) : (t.num = "1", wx.navigateTo({
                url: "/packageA/member/coupon_v2_detail/coupon_v2_detail?info=" + JSON.stringify(t) + "&combine=" + this.data.combine
            }));
        },
        setBottonIndex: function(e) {
            var t = e.currentTarget.dataset.index;
            this.triggerEvent("showButton", t);
        },
        goBuyOnce: function(e) {
            console.log(e);
            var t = {};
            t.item = e.currentTarget.dataset.item, t.ind = e.currentTarget.dataset.ind, this.triggerEvent("goBuyOnce", t);
        },
        presenterOnce: function(e) {
            var t = {};
            t.item = e.currentTarget.dataset.item, t.ind = e.currentTarget.dataset.ind, this.triggerEvent("presenterOnce", t);
        },
        delteteItem: function(e) {
            console.log(e);
            var t = e.currentTarget.dataset.item, n = e.currentTarget.dataset.ind;
            this.triggerEvent("delteteItem", {
                item: t,
                ind: n
            });
        }
    }
});